
<!DOCTYPE html>
<html lang="zh-cn">
{config_load file="common.conf"}
<head>
    <meta charset="UTF-8">
    <title>{if $docTitle}{$docTitle}{else}{$title}{/if} - {#site_name#}</title>
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    <link rel="icon" href="favicon.ico" type="image/x-icon" />

    <link rel="stylesheet" href="asset/lib/ratchet/css/ratchet.min.css">
    <link rel="stylesheet" href="asset/lib/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="asset/build/css/base.css">
<script type="text/javascript">
function mobileDeviceDetect(url){
    var thisOS = navigator.platform;
    var os = new Array("iPhone", "iPod", "iPad", "android", "Nokia", "SymbianOS", "Symbian", "Windows Phone", "Phone", "Linux armv71", "MAUI", "UNTRUSTED/1.0", "Windows CE", "BlackBerry", "IEMobile");
    for (var i = 0; i < os.length; i++) {
        if (thisOS.match(os[i])) {
            return true;
        }
    }
    if (navigator.platform.indexOf('iPad') != -1) {
        return true;
    }
    var check = navigator.appVersion;
    if ( check.match(/linux/i) || check.match(/mobile/i) || check.match(/X11/i) ) {
      return true;
    }
    Array.prototype.in_array = function(e) {
        for (i = 0; i < this.length; i++){
            if (this[i] == e) {
                return true;
            }
        }
        return false;
    };
}
if (!mobileDeviceDetect()) {
    window.location = 'html/v1/index.html';
}
</script>

</head>
<body>

<!-- nav mask -->
<nav class="nav" id="side-menu-nav">
    <div class="nav-mask"></div>
    <!-- content start -->
    <div class="nav-content text-white {if $session_user.uid > 0}logged-in{/if}">
        {if $session_user.uid > 0}
        <div class="nav-header">
            <div class="nav-profile clearfix">
                <div class="user-item pull-left">
                    <a class="link-reset user-profile-link" href="member.php?type=show&amp;uid={$session_user.uid}">
                        <div class="media-photo media-round user-profile-image">
                          <img src="asset/img/user_default.png" alt="">
                        </div>
                        <strong>{$session_user.username}</strong>
                    </a>
                </div>
            </div>
        </div>
        {/if}
        <div class="nav-menu-wrapper">
            <div class="va-container va-container-v">
                <div class="va-middle nav-menu">
                    <ul class="menu-group list-unstyled row-space-3">
                      <li>
                        <a data-ignore="push" href="index.php" class="link-reset menu-item" rel="nofollow">
                          首页
                        </a>
                      </li>
                      {if !$session_user.uid}
                      <li>
                        <a data-ignore="push" href="member.php?type=register" class="link-reset menu-item">
                          注册
                        </a>
                      </li>
                      <li>
                        <a data-ignore="push" href="member.php?type=login" class="link-reset menu-item">
                          登录
                        </a>
                      </li>
                      {/if}
                      <li class="items-logged-in">
                        <a data-ignore="push" href="#" rel="nofollow" class="link-reset menu-item">
                          提醒
                        </a>
                      </li>
                      <li class="items-logged-in">
                        <a data-ignore="push" href="#" rel="nofollow" class="link-reset menu-item">
                          收件箱
                          <i class="alert-count unread-count--sm fade text-center">
                            0
                          </i>
                        </a>
                      </li>
                      <li class="items-logged-in">
                        <a data-ignore="push" href="#" rel="nofollow" class="link-reset menu-item">
                          您的旅程
                        </a>
                      </li>
                      <li>
                        <a href="#" data-anchor="#discovery-container" class="link-reset menu-item" rel="nofollow">
                          发现
                        </a>
                      </li>
                      <li>
                        <a href="#" id="show-seach-btn" data-target="#search-modal" class="link-reset menu-item">
                          搜索
                        </a>
                      </li>
                      <li>
                        <a href="http://mp.weixin.qq.com/s?__biz=MzA5MDQ5ODI0Ng==&mid=400456856&idx=1&sn=cb1f898b1adf9bbf45fc67dcc0c44b9e&scene=4" class="link-reset menu-item" rel="nofollow">
                          帮助
                        </a>
                      </li>
                      <li>
                        <a href="http://mp.weixin.qq.com/s?__biz=MzA5MDQ5ODI0Ng==&mid=400201006&idx=1&sn=e851bd719b0e5e4aa10d82fc06145667&scene=18" class="link-reset menu-item" rel="nofollow">
                          一起玩
                        </a>
                      </li>
                      {if $session_user.uid > 0}
                      <li>
                        <a href="user.php?type=logout" class="link-reset menu-item" rel="nofollow">
                          退出登录
                        </a>
                      </li>
                      {/if}
                    </ul>
                </div>
            </div>
        </div>
    </div>
</nav>

<div class="content">
  

<header class="header" id="header">
    {if $show_nav_icon}
    <a href="#" id="nav-slide-btn" class="header-icon header-icon-left">
        <i class="fa fa-list-ul"></i>
        <span class="screen-reader-only">菜单</span>
    </a>
    {else}
    <a href="index.php" class="header-icon header-icon-left">
        <i class="fa fa-home"></i>
        <span class="screen-reader-only">首页</span>
    </a>
    {/if}
    

    <h2 class="header-title">
        {$showTitle|default:'当地人'}        
    </h2>

    {if !$hideUser}
    <a href="member.php?type=login" class="header-icon header-icon-right">
        <i class="fa fa-user"></i>
    </a>
    {/if}
</header>

<!-- 搜索modal -->
<div class="modal" id="search-modal" aria-hidden="false" tabindex="-1">
    <div class="modal-table">
        <div class="modal-cell">
          <div class="modal-content">
            <div class="panel-header modal-header">
              <a class="modal-close" href="#search-modal" data-dismiss="modal" aria-label="Close">
                <span class="screen-reader-only">关闭</span>
                <span class="aria-hidden">×</span>
              </a>
              搜索
            </div>
            <div class="panel-body">
              <div class="modal-search-wrapper-m">
                <form action="list.php" id="search-form" class="search-form" data-noajax="true">
                  <input type="hidden" name="source" value="mob">
                  <div class="row">
                    <div class="col-sm-12">
                      <label for="header-location-m">
                        <span class="screen-reader-only">想去哪里？</span>
                        <input type="text" placeholder="想去哪里？" autocomplete="off" name="location" id="header-location-m" class="input-large tt-input" spellcheck="false" dir="auto" style="position: relative; vertical-align: top; background-color: white;">
                      </label>
                    </div>
                  </div>
                  <div class="row row-condensed">
                    <div class="col-sm-6">
                      <label class="checkin">
                        <span class="screen-reader-only">行程开始</span>
                        <input type="text" name="checkin" class="checkin form-control input-large ui-datepicker-target" placeholder="行程开始">
                      </label>
                    </div>
                    <div class="col-sm-6">
                      <label class="checkout">
                        <span class="screen-reader-only">行程结束</span>
                        <input type="text" name="checkout" class="checkout form-control input-large ui-datepicker-target" placeholder="行程结束">
                      </label>
                    </div>
                  </div>
                  <div class="row space-2 space-top-1">
                    <div class="col-sm-12">
                      <label for="header-search-guests" class="screen-reader-only">
                        游客人数
                      </label>
                      <div class="select select-block select-large">
                        <select id="header-search-guests" name="guests">
                          <option value="1">1位游客</option><option value="2">2位游客</option><option value="3">3位游客</option><option value="4">4位游客</option><option value="5">5位游客</option><option value="6">6位游客</option><option value="7">7位游客</option><option value="8">8位游客</option><option value="9">9位游客</option><option value="10">10位游客</option><option value="11">11位游客</option><option value="12">12位游客</option><option value="13">13位游客</option><option value="14">14位游客</option><option value="15">15位游客</option><option value="16">16位游客</option>
                        </select>
                      </div>
                    </div>
                  </div>
                  <div class="panel room-type-filter-m row-space-top-1">
                    <div class="panel-body">
                      <div class="row text-center">
                        <input type="checkbox" id="room-type-0-m" name="service_types[]" value="1">
                        <label class="col-sm-4 modal-filter" for="room-type-0-m">
                          <i class="icon fa fa-mobile-phone icon-size-2"></i>
                          <br>24小时开机服务
                        </label>
                        <input type="checkbox" id="room-type-1-m" name="service_types[]" value="2">
                        <label class="col-sm-4 modal-filter" for="room-type-1-m">
                          <i class="icon fa fa-plane icon-size-2"></i>
                          <br>接送机/车站
                        </label>
                        <input type="checkbox" id="room-type-2-m" name="service_types[]" value="3">
                        <label class="col-sm-4 modal-filter" for="room-type-2-m">
                          <i class="icon fa fa-group icon-size-2"></i>
                          <br>地陪服务
                        </label>

                      </div>
                      <div class="row text-center">
                        <input type="checkbox" id="room-type-3-m" name="service_types[]" value="4">
                        <label class="col-sm-4 modal-filter" for="room-type-3-m">
                          <i class="icon fa fa-star icon-size-2"></i>
                          <br>定制
                        </label>
                      </div>
                    </div>
                  </div>
                  <div class="row row-space-top-2">
                    <div class="col-sm-12">
                      <button type="submit" class="btn btn-primary btn-large btn-block">
                        <i class="fa fa-search"></i>
                        寻找当地人
                      </button>
                    </div>
                  </div>
                </form>
              </div>
            </div>
          </div>
        </div>
    </div>
</div>
